package com.ypj.indusynergyems.dao.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ypj.indusynergyems.dao.entity.GoodsEntity;
import com.ypj.indusynergyems.dao.entity.GoodsTypeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface GoodsTypeMapper extends BaseMapper<GoodsTypeEntity> {

    @Select("select goods_type from goodstype where goods_type_id = #{goodsTypeId} and shop_id = #{shopId}")
    String selectTypeName(GoodsEntity goodsEntity);
}
